property="org.simantics.sysdyn.ui.nodeClass">\r
</test>\r
<test\r
- args="org.simantics.document.workbench.browser_old.DocumentationFolder"\r
+ args="org.simantics.document.workbench.browser_old.DocumentationNode"\r
property="org.simantics.sysdyn.ui.nodeClass">\r
</test>\r
</or>\r
args="org.simantics.sysdyn.ui.browser.nodes.FunctionLibraryNode"\r
property="org.simantics.sysdyn.ui.nodeClass">\r
</test>\r
+ <test\r
+ args="org.simantics.document.workbench.browser_old.DocumentationNode"\r
+ property="org.simantics.sysdyn.ui.nodeClass">\r
+ </test>\r
</or>\r
</with>\r
</activeWhen>\r
import org.simantics.modeling.ModelingResources;\r
import org.simantics.modeling.ui.features.EditorNamingService2;\r
import org.simantics.simulation.ontology.SimulationResource;\r
+import org.simantics.sysdyn.SysdynResource;\r
import org.simantics.ui.workbench.IResourceEditorInput2;\r
\r
/**\r
}\r
} else {\r
ModelingResources mr = ModelingResources.getInstance(g);\r
- Resource conf = g.getPossibleObject(input.getResource(), mr.DiagramToComposite);\r
- if(conf != null) {\r
- Resource module = g.getPossibleObject(conf, Layer0.getInstance(g).PartOf);\r
- if(module != null) \r
- return NameUtils.getSafeName(g, module);\r
+ SysdynResource sr = SysdynResource.getInstance(g);\r
+ Resource composite = g.getPossibleObject(input.getResource(), mr.DiagramToComposite);\r
+ if(composite != null) {\r
+ if(g.isInstanceOf(composite, sr.Configuration))\r
+ composite = g.getPossibleObject(composite, Layer0.getInstance(g).PartOf);\r
+ if(composite != null) \r
+ return NameUtils.getSafeName(g, composite);\r
}\r
}\r
}\r