]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/modelingRules/StandardAttachmentRelationMap.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / modelingRules / StandardAttachmentRelationMap.java
index 7a1efdf43fe4ea9a650c86675e13e7a0d30a59ca..80169e38a8af6376c701b277ac35ba5ff2d08e61 100644 (file)
@@ -1,22 +1,22 @@
-package org.simantics.structural2.modelingRules;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.structural.stubs.StructuralResource2;\r
-\r
-public class StandardAttachmentRelationMap implements IAttachmentRelationMap {\r
-\r
-       public final static StandardAttachmentRelationMap INSTANCE = \r
-               new StandardAttachmentRelationMap();\r
-       \r
-       @Override\r
-       public Resource get(ReadGraph g, CPTerminal cp) throws DatabaseException {\r
-               CPTerminal terminal = (CPTerminal)cp;\r
-               StructuralResource2 sr = StructuralResource2.getInstance(g);\r
-               return g.getPossibleObject(\r
-                               terminal.relation,\r
-                sr.HasAttachmentRelation);\r
-       }\r
-\r
-}\r
+package org.simantics.structural2.modelingRules;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.structural.stubs.StructuralResource2;
+
+public class StandardAttachmentRelationMap implements IAttachmentRelationMap {
+
+       public final static StandardAttachmentRelationMap INSTANCE = 
+               new StandardAttachmentRelationMap();
+       
+       @Override
+       public Resource get(ReadGraph g, CPTerminal cp) throws DatabaseException {
+               CPTerminal terminal = (CPTerminal)cp;
+               StructuralResource2 sr = StructuralResource2.getInstance(g);
+               return g.getPossibleObject(
+                               terminal.relation,
+                sr.HasAttachmentRelation);
+       }
+
+}