]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sharedontology/wizard/ModelExporter.java
Still minor cleanup for generic model import/export code
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / sharedontology / wizard / ModelExporter.java
index 7211c79035fe0ae91180231659f70ff60aa26150..8d3b124fd12b5058681e4104ca1df839990deccb 100644 (file)
@@ -71,21 +71,19 @@ public class ModelExporter implements IRunnableWithProgress {
             mon.setWorkRemaining(0);
         }
     }
-    
-    public static void doExport(IProgressMonitor monitor, final File location, final LibraryInfo info, boolean includeDependencies) throws DatabaseException, IOException {
-       Simantics.sync(new ReadRequest() {
 
-                       @Override
-                       public void run(ReadGraph graph) throws DatabaseException {
-                               TransferableGraphConfiguration2 conf = new TransferableGraphConfiguration2(graph, info.library.getResource(), true, false);
-                               if(includeDependencies) {
-                                       ModelDependenciesBean bean = ModelDependenciesBean.create(graph, info.library.getResource());
-                                       conf.baseExtensions.put(ModelDependenciesBean.EXTENSION_KEY, new Variant(ModelDependenciesBean.BINDING, bean));
-                               }
-                               ModelingUtils.exportModel(graph, conf, location.getAbsolutePath(), "", 1);
-                       }
-               
-       });
+    public static void doExport(IProgressMonitor monitor, final File location, final LibraryInfo info, boolean includeDependencies) throws DatabaseException, IOException {
+        Simantics.sync(new ReadRequest() {
+            @Override
+            public void run(ReadGraph graph) throws DatabaseException {
+                TransferableGraphConfiguration2 conf = new TransferableGraphConfiguration2(graph, info.library.getResource(), true, false);
+                if (includeDependencies) {
+                    ModelDependenciesBean bean = ModelDependenciesBean.create(graph, info.library.getResource());
+                    conf.baseExtensions.put(ModelDependenciesBean.EXTENSION_KEY, new Variant(ModelDependenciesBean.BINDING, bean));
+                }
+                ModelingUtils.exportModel(graph, conf, location.getAbsolutePath(), "", 1);
+            }
+        });
     }
-       
+
 }