import org.eclipse.e4.ui.services.IServiceConstants;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor;
+import org.simantics.DatabaseJob;
import org.simantics.Simantics;
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
return false;
if (s == null)
return false;
-
+ if (DatabaseJob.inProgress())
+ return false;
final Resource[] resources = ResourceAdaptionUtils.toResources(s);
if (resources.length != 0) {
if (!Arrays.equals(resources, lastResources)) {
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor;
+import org.simantics.DatabaseJob;
import org.simantics.Simantics;
import org.simantics.db.Resource;
import org.simantics.db.Session;
}
if (activeEditor == null)
return false;
+ if (DatabaseJob.inProgress())
+ return false;
IResourceEditorInput input = (IResourceEditorInput) activeEditor.getEditorInput();
return TypicalPropertyTester.isTypicalInstanceEditor(Simantics.getSession(), input.getResource());
}
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor;
+import org.simantics.DatabaseJob;
import org.simantics.Simantics;
import org.simantics.db.Resource;
import org.simantics.db.Session;
}
if (activeEditor == null)
return false;
+ if (DatabaseJob.inProgress())
+ return false;
IResourceEditorInput input = (IResourceEditorInput) activeEditor.getEditorInput();
return TypicalPropertyTester.isTypicalMasterEditor(Simantics.getSession(), input.getResource());
}