git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29906
ac1ea38d-2e2b-0410-8846-
a27921b304fc
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