From: villberg Date: Wed, 16 Jul 2014 09:34:59 +0000 (+0000) Subject: refs #5110 X-Git-Tag: v1.29.0~236 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=93619b2b98512acf92518be832c5a8bb23c9aed5;p=simantics%2Fsysdyn.git refs #5110 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29906 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/Project.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/Project.java index 73725ccb..0d381be5 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/Project.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/contributions/Project.java @@ -48,7 +48,10 @@ public class Project extends ViewpointContributor { ProjectResource PROJ = ProjectResource.getInstance(graph); if(!graph.isInstanceOf(project, PROJ.Project)) return Collections.emptyList(); Collection ontologies = Simantics.applySCL("Simantics/SharedOntologies", "traverseSharedOntologies", graph, graph.getRootLibrary()); - for(Resource o : ontologies) result.add(new SharedOntologyNode(o)); + for(Resource o : ontologies) { + if(!graph.isImmutable(o)) + result.add(new SharedOntologyNode(o)); + } return result;