]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #5110
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 16 Jul 2014 09:34:59 +0000 (09:34 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 16 Jul 2014 09:34:59 +0000 (09:34 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29906 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index 73725ccb3ca2949de236e4f28e484687e72c2152..0d381be52c645e1e20c8eeacf896c88367996018 100644 (file)
@@ -48,7 +48,10 @@ public class Project extends ViewpointContributor<Resource> {
         ProjectResource PROJ = ProjectResource.getInstance(graph);\r
         if(!graph.isInstanceOf(project, PROJ.Project)) return Collections.emptyList();\r
         Collection<Resource> ontologies = Simantics.applySCL("Simantics/SharedOntologies", "traverseSharedOntologies", graph, graph.getRootLibrary());\r
-        for(Resource o : ontologies) result.add(new SharedOntologyNode(o));\r
+        for(Resource o : ontologies) {\r
+               if(!graph.isImmutable(o))\r
+                       result.add(new SharedOntologyNode(o));\r
+        }\r
 \r
         return result;\r
 \r