From: Miro Richard Eklund Date: Tue, 2 May 2017 15:01:41 +0000 (+0300) Subject: Added file-extension filter function to Core.scl for Dropins. X-Git-Tag: v1.29.0~80 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c486ef9e73c4c4e1ca0392bfba326641fde35e2e;p=simantics%2Fplatform.git Added file-extension filter function to Core.scl for Dropins. Generic file-importer can be asked which extensions are supported. Added that function to Core.scl. refs #7154 Change-Id: If9d76c61e19ea543eda9ee23524d18c5d4623ee3 --- diff --git a/bundles/org.simantics.fileimport/scl/Dropins/Core.scl b/bundles/org.simantics.fileimport/scl/Dropins/Core.scl index b795abbcc..765906d6f 100644 --- a/bundles/org.simantics.fileimport/scl/Dropins/Core.scl +++ b/bundles/org.simantics.fileimport/scl/Dropins/Core.scl @@ -13,6 +13,7 @@ importJava "org.simantics.fileimport.FileImportService" where performFileImport :: String -> String -> String importGenericFileWithExtension :: String -> String -> String importGenericFileWithExtensionAndParent :: Resource -> String -> String -> Resource + filterSupportedExtensions :: String -> [String] importGenericFileToResource :: String -> String -> Resource importGenericFileToResource path extension = do