import org.simantics.plant3d.Activator;
import org.simantics.plant3d.scenegraph.EndComponent;
import org.simantics.plant3d.scenegraph.Equipment;
-import org.simantics.plant3d.scenegraph.InlineComponent;
import org.simantics.plant3d.scenegraph.Nozzle;
import org.simantics.plant3d.scenegraph.P3DRootNode;
import org.simantics.plant3d.scenegraph.PipeRun;
if (parentElement instanceof PipelineComponent) {
return new Object[]{((PipelineComponent) parentElement).getControlPoint()};
} else if (parentElement instanceof PipeControlPoint) {
- return new Object[]{((PipeControlPoint) parentElement).getPipelineComponent()};
+ PipeControlPoint pcp = (PipeControlPoint) parentElement;
+ Object arr[] = new Object[pcp.children.size()+1];
+ arr[0] = pcp.getPipelineComponent();
+ for (int i = 0; i < pcp.children.size();i++) {
+ arr[i+1] = pcp.children.get(i);
+ }
+ return arr;
}
}
return super.getChildren(parentElement);
import java.util.Set;
import org.simantics.db.ReadGraph;
-import org.simantics.db.Resource;
import org.simantics.db.Session;
import org.simantics.db.exception.DatabaseException;
import org.simantics.g3d.ontology.G3D;