From c18fb5fdd8bd3ab8ed7d5fb9c47ac4fb1061a6f3 Mon Sep 17 00:00:00 2001 From: villberg Date: Tue, 20 May 2014 10:13:09 +0000 Subject: [PATCH] refs #4833 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29522 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/browser/contributions/LibraryContribution.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 879cb666..e06d1cc1 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 @@ -15,7 +15,6 @@ import java.util.ArrayList; import java.util.Collection; import org.simantics.browsing.ui.common.node.AbstractNode; -import org.simantics.browsing.ui.common.node.ISpecialFolder; import org.simantics.browsing.ui.graph.contributor.viewpoint.ViewpointContributor; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; @@ -23,6 +22,7 @@ import org.simantics.db.common.request.ObjectsWithType; import org.simantics.db.exception.DatabaseException; import org.simantics.layer0.Layer0; import org.simantics.sysdyn.ui.browser.nodes.Library; +import org.simantics.sysdyn.ui.browser.nodes.ModelNode; public class LibraryContribution extends ViewpointContributor> { @@ -31,7 +31,7 @@ public class LibraryContribution extends ViewpointContributor> result = new ArrayList>(); - if(node instanceof ISpecialFolder) return result; + if(!(node instanceof ModelNode)) return result; Layer0 L0 = Layer0.getInstance(graph); if(!graph.isInstanceOf(node.data, L0.SharedOntology)) { -- 2.47.1