From c486ef9e73c4c4e1ca0392bfba326641fde35e2e Mon Sep 17 00:00:00 2001 From: Miro Richard Eklund Date: Tue, 2 May 2017 18:01:41 +0300 Subject: [PATCH] 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 --- bundles/org.simantics.fileimport/scl/Dropins/Core.scl | 1 + 1 file changed, 1 insertion(+) 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 -- 2.43.2