]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/src/org/simantics/modeling/requests/SetFlagExternal.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / requests / SetFlagExternal.java
index f9c0ee59a06e32fe0d1651001860e8b8105cc572..f4360add78c616b6beb9dbb68dfd3b8d70efe6c5 100644 (file)
@@ -1,33 +1,33 @@
-package org.simantics.modeling.requests;\r
-\r
-import java.util.Collection;\r
-\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.WriteGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.diagram.stubs.DiagramResource;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class SetFlagExternal {\r
-\r
-    Collection<Resource> flags;\r
-    boolean              external;\r
-\r
-    public SetFlagExternal(Collection<Resource> flags, boolean external) {\r
-        this.flags = flags;\r
-        this.external = external;\r
-    }\r
-\r
-    public void perform(WriteGraph graph) throws DatabaseException {\r
-        DiagramResource DIA = DiagramResource.getInstance(graph);\r
-        for (Resource flag : flags) {\r
-            if (external)\r
-                graph.claim(flag, DIA.ExternalFlag, DIA.ExternalFlag, flag);\r
-            else\r
-                graph.deny(flag, DIA.ExternalFlag);\r
-        }\r
-    }\r
-\r
+package org.simantics.modeling.requests;
+
+import java.util.Collection;
+
+import org.simantics.db.Resource;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.diagram.stubs.DiagramResource;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class SetFlagExternal {
+
+    Collection<Resource> flags;
+    boolean              external;
+
+    public SetFlagExternal(Collection<Resource> flags, boolean external) {
+        this.flags = flags;
+        this.external = external;
+    }
+
+    public void perform(WriteGraph graph) throws DatabaseException {
+        DiagramResource DIA = DiagramResource.getInstance(graph);
+        for (Resource flag : flags) {
+            if (external)
+                graph.claim(flag, DIA.ExternalFlag, DIA.ExternalFlag, flag);
+            else
+                graph.deny(flag, DIA.ExternalFlag);
+        }
+    }
+
 }
\ No newline at end of file