]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/ge/VariableInstanceOfTest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / src / org / simantics / document / linking / ge / VariableInstanceOfTest.java
index edb9f89c12b9214c0640a1a45a94430c88ebf715..cefb0878db7e329310d2ead50f3dccb79f3020bd 100644 (file)
@@ -1,33 +1,33 @@
-package org.simantics.document.linking.ge;\r
-\r
-import org.simantics.browsing.ui.model.tests.Test;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.variable.Variable;\r
-\r
-public class VariableInstanceOfTest  implements Test  {\r
-       Resource type;\r
-       \r
-       public VariableInstanceOfTest(Resource type) {\r
-               this.type = type;\r
-       }\r
-       \r
-       \r
-       @Override\r
-       public boolean isCompatible(Class<?> contentType) {\r
-               return contentType == Variable.class;\r
-       }\r
-       \r
-       @Override\r
-       public boolean test(ReadGraph graph, Object content)\r
-                       throws DatabaseException {\r
-               Variable variable = (Variable)content;\r
-               Resource res = variable.getPossibleRepresents(graph);\r
-               if (res == null)\r
-                       return false;\r
-               return graph.isInstanceOf(res, type);\r
-       }\r
-       \r
-\r
-}\r
+package org.simantics.document.linking.ge;
+
+import org.simantics.browsing.ui.model.tests.Test;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.variable.Variable;
+
+public class VariableInstanceOfTest  implements Test  {
+       Resource type;
+       
+       public VariableInstanceOfTest(Resource type) {
+               this.type = type;
+       }
+       
+       
+       @Override
+       public boolean isCompatible(Class<?> contentType) {
+               return contentType == Variable.class;
+       }
+       
+       @Override
+       public boolean test(ReadGraph graph, Object content)
+                       throws DatabaseException {
+               Variable variable = (Variable)content;
+               Resource res = variable.getPossibleRepresents(graph);
+               if (res == null)
+                       return false;
+               return graph.isInstanceOf(res, type);
+       }
+       
+
+}