From: lempinen Date: Mon, 2 May 2011 06:11:06 +0000 (+0000) Subject: Added splash.bmp and modified build to include the new OpenModelica X-Git-Tag: simantics-1.4RC1~27 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6bfb8bdc1b1af839d82b8af68a370b1f3839a3f6;p=simantics%2Fsysdyn.git Added splash.bmp and modified build to include the new OpenModelica git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20693 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.feature/feature.xml b/org.simantics.sysdyn.feature/feature.xml index 02b406c4..7b51cef1 100644 --- a/org.simantics.sysdyn.feature/feature.xml +++ b/org.simantics.sysdyn.feature/feature.xml @@ -93,20 +93,6 @@ version="0.0.0" unpack="false"/> - - - - updateCallback) { - final Resource r = AdaptionUtils.adaptToSingle(forSelection, Resource.class); - if(r == null) { + final Resource resource = AdaptionUtils.adaptToSingle(forSelection, Resource.class); + if(resource == null) { updateCallback.run("Selection properties"); return; } @@ -62,6 +63,11 @@ public abstract class LabelPropertyTabContributor extends PropertyTabContributor @Override public String perform(ReadGraph graph) throws DatabaseException { Layer0 l0 = Layer0.getInstance(graph); + ModelingResources mr = ModelingResources.getInstance(graph); + Resource r = resource; + if(graph.hasStatement(r, mr.ElementToComponent)) { + r = graph.getSingleObject(r, mr.ElementToComponent); + } String label = graph.getPossibleRelatedValue(r, l0.HasLabel); if(label != null) return label; diff --git a/org.simantics.sysdyn.ui/sysdyn.product b/org.simantics.sysdyn.ui/sysdyn.product index 9b282a0c..a9588186 100644 --- a/org.simantics.sysdyn.ui/sysdyn.product +++ b/org.simantics.sysdyn.ui/sysdyn.product @@ -14,6 +14,8 @@ +