]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/handlers/e4/SyncCurrentTypicalTemplateToInstances.java
Rid TypicalPropertyTester of database read transactions
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / handlers / e4 / SyncCurrentTypicalTemplateToInstances.java
index bbafb03e0ce201b530166609745ac243fcdd3fd8..9fc604c6f879f497b0319c15559072e7c9dc473e 100644 (file)
@@ -45,8 +45,7 @@ public class SyncCurrentTypicalTemplateToInstances {
         if (DatabaseJob.inProgress())
             return false;
         if (activeEditor.getEditorInput() instanceof IResourceEditorInput) {
-            IResourceEditorInput input = (IResourceEditorInput) activeEditor.getEditorInput();
-            return TypicalPropertyTester.isTypicalMasterEditor(Simantics.getSession(), input.getResource());
+            return TypicalPropertyTester.isTypicalMasterEditor(activeEditor);
         } else {
             return false;
         }