]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/PossibleActiveRun.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / request / PossibleActiveRun.java
index 7e5849c04e046336dc9d42fedc40790f089186c6..1921e7af0660617baaef9ed289005e3783e6acd0 100644 (file)
@@ -1,30 +1,30 @@
-package org.simantics.db.layer0.request;\r
-\r
-import java.util.Collection;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.request.ResourceRead;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.Variable;\r
-\r
-public class PossibleActiveRun extends ResourceRead<Variable> {\r
-\r
-    public PossibleActiveRun(Resource model) {\r
-        super(model);\r
-    }\r
-\r
-    public PossibleActiveRun(ReadGraph graph, Variable model) throws DatabaseException {\r
-        super(model.getRepresents(graph));\r
-    }\r
-\r
-    @Override\r
-    public Variable perform(ReadGraph graph) throws DatabaseException {\r
-\r
-       Collection<Variable> result = graph.sync(new ActiveRuns(resource));\r
-       if(result.size() == 1) return result.iterator().next();\r
-       else return null;\r
-\r
-    }\r
-\r
-}\r
+package org.simantics.db.layer0.request;
+
+import java.util.Collection;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.request.ResourceRead;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+
+public class PossibleActiveRun extends ResourceRead<Variable> {
+
+    public PossibleActiveRun(Resource model) {
+        super(model);
+    }
+
+    public PossibleActiveRun(ReadGraph graph, Variable model) throws DatabaseException {
+        super(model.getRepresents(graph));
+    }
+
+    @Override
+    public Variable perform(ReadGraph graph) throws DatabaseException {
+
+       Collection<Variable> result = graph.sync(new ActiveRuns(resource));
+       if(result.size() == 1) return result.iterator().next();
+       else return null;
+
+    }
+
+}