From: villberg Date: Wed, 21 May 2014 08:16:33 +0000 (+0000) Subject: refs #4833 X-Git-Tag: 1.8.1~52 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=0f4be942297c36bdc43dc9e97a2a6357779751b4;p=simantics%2Fsysdyn.git refs #4833 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29523 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/LibraryContribution.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/LibraryContribution.java index e06d1cc1..9101dbf1 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/LibraryContribution.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/LibraryContribution.java @@ -31,7 +31,7 @@ public class LibraryContribution extends ViewpointContributor> result = new ArrayList>(); - if(!(node instanceof ModelNode)) return result; + if(!(node instanceof ModelNode || node instanceof Library)) return result; Layer0 L0 = Layer0.getInstance(graph); if(!graph.isInstanceOf(node.data, L0.SharedOntology)) {