]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #4833
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 21 May 2014 08:16:33 +0000 (08:16 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 21 May 2014 08:16:33 +0000 (08:16 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29523 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/LibraryContribution.java

index e06d1cc1df26954867f3c29d75d721392f86df46..9101dbf101f1cbebe341420291b9ec8b2242f72e 100644 (file)
@@ -31,7 +31,7 @@ public class LibraryContribution  extends ViewpointContributor<AbstractNode<Reso
        \r
         ArrayList<AbstractNode<Resource>> result = new ArrayList<AbstractNode<Resource>>();\r
         \r
-        if(!(node instanceof ModelNode)) return result;\r
+        if(!(node instanceof ModelNode || node instanceof Library)) return result;\r
         \r
         Layer0 L0 = Layer0.getInstance(graph);\r
         if(!graph.isInstanceOf(node.data, L0.SharedOntology)) {\r