]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.fileimport/src/org/simantics/fileimport/FileImportService.java
Sync git svn branch with SVN repository r33249.
[simantics/platform.git] / bundles / org.simantics.fileimport / src / org / simantics / fileimport / FileImportService.java
index a3a6a8c41efe415f37b6c5e102d376e7bbd311d3..1fa4e3f5b2756c3506bf45403845cd4f8387a005 100644 (file)
@@ -27,6 +27,8 @@ import org.simantics.fileimport.dropins.FileImportDropins;
  */\r
 public class FileImportService {\r
 \r
+    private FileImportService() {}\r
+    \r
     public static final String DB_FILE = ".simanticsdb";\r
 \r
     private static List<IGenericFileImport> getFileImportServices() {\r
@@ -131,6 +133,11 @@ public class FileImportService {
                     return;\r
                 service.remove(resource.get());\r
                 removeResourceForPath(file);\r
+                try {\r
+                    Files.delete(file);\r
+                } catch (IOException e) {\r
+                    Files.delete(file);\r
+                }\r
             } catch (Throwable t) {\r
                 if (callback.isPresent()) {\r
                     callback.get().accept(t);\r