]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/ProfileUtils.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scenegraph.profile / src / org / simantics / scenegraph / profile / ProfileUtils.java
index b35ccd9f2064b425bbece1d43566f5b2ea4a09ad..989b7bb05d5aaff05d429a6e6d070842e73834c7 100644 (file)
@@ -1,25 +1,25 @@
-package org.simantics.scenegraph.profile;\r
-\r
-import java.util.Collections;\r
-import java.util.List;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.diagram.stubs.DiagramResource;\r
-\r
-public class ProfileUtils {\r
-\r
-       public static List<Resource> getProfileChildren(ReadGraph graph, Resource profile) throws DatabaseException {\r
-               DiagramResource DIA = DiagramResource.getInstance(graph);\r
-               Resource entries = graph.getPossibleObject(profile, DIA.HasEntries);\r
-               if(entries == null) return Collections.emptyList();\r
-               return getProfileChildrenFromEntries(graph, entries);\r
-       }\r
-\r
-       public static List<Resource> getProfileChildrenFromEntries(ReadGraph graph, Resource entries) throws DatabaseException {\r
-               DiagramResource DIA = DiagramResource.getInstance(graph);\r
-               return graph.getRelatedValue2(entries, DIA.Profile_children, entries);\r
-       }\r
-\r
-}\r
+package org.simantics.scenegraph.profile;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.diagram.stubs.DiagramResource;
+
+public class ProfileUtils {
+
+       public static List<Resource> getProfileChildren(ReadGraph graph, Resource profile) throws DatabaseException {
+               DiagramResource DIA = DiagramResource.getInstance(graph);
+               Resource entries = graph.getPossibleObject(profile, DIA.HasEntries);
+               if(entries == null) return Collections.emptyList();
+               return getProfileChildrenFromEntries(graph, entries);
+       }
+
+       public static List<Resource> getProfileChildrenFromEntries(ReadGraph graph, Resource entries) throws DatabaseException {
+               DiagramResource DIA = DiagramResource.getInstance(graph);
+               return graph.getRelatedValue2(entries, DIA.Profile_children, entries);
+       }
+
+}