X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Feditor%2FPlant3DEditor.java;h=033f8544cf6f71103130d6b7db37a986609959f0;hb=68bb44ea41644141aaaf7467ac3d201678e31db3;hp=618e08533f33b97cae6c583eddac57d5b802c7b9;hpb=fc44aa6fb56a795b4cae2d0684af67ae539fc748;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/editor/Plant3DEditor.java b/org.simantics.plant3d/src/org/simantics/plant3d/editor/Plant3DEditor.java index 618e0853..033f8544 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/editor/Plant3DEditor.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/editor/Plant3DEditor.java @@ -46,6 +46,7 @@ import org.simantics.plant3d.actions.AddComponentAction; import org.simantics.plant3d.actions.AddEquipmentAction; import org.simantics.plant3d.actions.AddNozzleAction; import org.simantics.plant3d.actions.RoutePipeAction; +import org.simantics.plant3d.actions.TranslateInlineAction; import org.simantics.plant3d.scenegraph.EndComponent; import org.simantics.plant3d.scenegraph.Equipment; import org.simantics.plant3d.scenegraph.IP3DNode; @@ -96,6 +97,7 @@ public class Plant3DEditor extends ResourceEditorPart { private vtkCameraAndSelectorAction cameraAction; private TranslateAction translateAction; + private TranslateInlineAction translateInlineAction; private RotateAction rotateAction; private RemoveAction removeAction; private RoutePipeAction routePipeAction; @@ -244,6 +246,7 @@ public class Plant3DEditor extends ResourceEditorPart { } translateAction = new TranslateAction(panel,nodeMap); + translateInlineAction = new TranslateInlineAction(panel, nodeMap); rotateAction = new RotateAction(panel,nodeMap); removeAction = new RemoveAction(nodeMap) { public void setNode(IG3DNode node) { @@ -382,6 +385,7 @@ public class Plant3DEditor extends ResourceEditorPart { } else if (node instanceof InlineComponent) { //m.add(translateInlineAction); InlineComponent component = (InlineComponent)node; + m.add(translateInlineAction); m.add(routePipeAction); routePipeAction.setComponent(component); m.add(addComponentAction); @@ -390,6 +394,7 @@ public class Plant3DEditor extends ResourceEditorPart { m.add(removeAction); translateAction.setNode(node); + translateInlineAction.setNode(node); rotateAction.setNode(node); removeAction.setNode(node);