]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/variables/StandardProceduralChildVariable.java
Work in progress
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / variables / StandardProceduralChildVariable.java
index a5b50f6f36bc5dc7f1368ff0acc80d9ea4a46e23..62d574633b8d948154b4804d997b9a6ef4da3b45 100644 (file)
@@ -75,7 +75,7 @@ public class StandardProceduralChildVariable extends AbstractChildVariable {
         }
         
         @Override
-        public Collection<Variable> getConnectionPoints(ReadGraph graph, Resource relationType) throws DatabaseException {
+        public Collection<Variable> getConnectionPoints(ReadGraph graph, Variable component_, Resource relationType) throws DatabaseException {
                
                Set<Variable> result = new THashSet<Variable>();
             for(Pair<String,Resource> cp : cps) {
@@ -93,7 +93,7 @@ public class StandardProceduralChildVariable extends AbstractChildVariable {
         }
         
                @Override
-               public Collection<String> getConnectionPointURIs(ReadGraph graph, Resource relationType) throws DatabaseException {
+               public Collection<String> getConnectionPointURIs(ReadGraph graph, Variable component_, Resource relationType) throws DatabaseException {
                        
                Set<String> result = new THashSet<String>();
             for(Pair<String,Resource> cp : cps) {
@@ -111,7 +111,7 @@ public class StandardProceduralChildVariable extends AbstractChildVariable {
                }
                
                @Override
-               public Collection<VariableConnectionPointDescriptor> getConnectionPointDescriptors(ReadGraph graph, Resource relationType) throws DatabaseException {
+               public Collection<VariableConnectionPointDescriptor> getConnectionPointDescriptors(ReadGraph graph, Variable component_, Resource relationType) throws DatabaseException {
                        
                Set<VariableConnectionPointDescriptor> result = new THashSet<VariableConnectionPointDescriptor>();
             for(Pair<String,Resource> cp : cps) {
@@ -271,7 +271,7 @@ public class StandardProceduralChildVariable extends AbstractChildVariable {
        public Resource getType(ReadGraph graph, Resource baseType) throws DatabaseException {
                if (graph.isInheritedFrom(type, baseType))
                        return type;
-               throw new NoSingleResultException("variable " + getPossibleURI(graph) + " has no type");
+               throw new NoSingleResultException("variable " + getPossibleURI(graph) + " has no type", -1);
        }
        
        @Override