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=refs%2Fchanges%2F72%2F472%2F4;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