]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/queries/PossibleConnectionPointInfo.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / queries / PossibleConnectionPointInfo.java
index 0117079bb230fc5fa9fcfab51e672c469aa90942..0191df07a80da6be95daa12ccfc6254d0731c14b 100644 (file)
@@ -1,33 +1,33 @@
-package org.simantics.structural2.queries;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.primitiverequest.IsSubrelationOf;\r
-import org.simantics.db.common.procedure.adapter.TransientCacheAsyncListener;\r
-import org.simantics.db.common.request.ResourceRead;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.layer0.request.PropertyInfo;\r
-import org.simantics.db.layer0.request.PropertyInfoRequest;\r
-import org.simantics.structural.stubs.StructuralResource2;\r
-\r
-public class PossibleConnectionPointInfo extends ResourceRead<PropertyInfo> {\r
-\r
-       public PossibleConnectionPointInfo(Resource resource) {\r
-               super(resource);\r
-       }\r
-\r
-       @Override\r
-       public PropertyInfo perform(ReadGraph graph) throws DatabaseException {\r
-\r
-               PropertyInfo info = graph.syncRequest(new PropertyInfoRequest(resource), TransientCacheAsyncListener.<PropertyInfo>instance());\r
-               if(info != null && !info.isHasProperty) {\r
-                       StructuralResource2 STR = StructuralResource2.getInstance(graph);\r
-                       if(graph.syncRequest(new IsSubrelationOf(resource, STR.IsConnectedTo), TransientCacheAsyncListener.<Boolean>instance())) {\r
-                               if (info.name != null) return info;\r
-                       }\r
-               }\r
-               return null;\r
-               \r
-       }\r
-\r
-}\r
+package org.simantics.structural2.queries;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.primitiverequest.IsSubrelationOf;
+import org.simantics.db.common.procedure.adapter.TransientCacheAsyncListener;
+import org.simantics.db.common.request.ResourceRead;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.layer0.request.PropertyInfo;
+import org.simantics.db.layer0.request.PropertyInfoRequest;
+import org.simantics.structural.stubs.StructuralResource2;
+
+public class PossibleConnectionPointInfo extends ResourceRead<PropertyInfo> {
+
+       public PossibleConnectionPointInfo(Resource resource) {
+               super(resource);
+       }
+
+       @Override
+       public PropertyInfo perform(ReadGraph graph) throws DatabaseException {
+
+               PropertyInfo info = graph.syncRequest(new PropertyInfoRequest(resource), TransientCacheAsyncListener.<PropertyInfo>instance());
+               if(info != null && !info.isHasProperty) {
+                       StructuralResource2 STR = StructuralResource2.getInstance(graph);
+                       if(graph.syncRequest(new IsSubrelationOf(resource, STR.IsConnectedTo), TransientCacheAsyncListener.<Boolean>instance())) {
+                               if (info.name != null) return info;
+                       }
+               }
+               return null;
+               
+       }
+
+}