if (DatabaseJob.inProgress())
return false;
if (activeEditor.getEditorInput() instanceof IResourceEditorInput) {
- IResourceEditorInput input = (IResourceEditorInput) activeEditor.getEditorInput();
- return TypicalPropertyTester.isTypicalInstanceEditor(Simantics.getSession(), input.getResource());
+ return TypicalPropertyTester.isTypicalInstanceEditor(activeEditor);
} else {
return false;
}