@Override public void forceDeleteShape(final WiresBaseShape shape) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); }
@Override public void forceDeleteShape(final WiresBaseShape shape) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); }
@Override public void forceDeleteShape(final WiresBaseShape shape) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); }
@Override public void forceDeleteShape(final WiresBaseShape shape) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); }
@Override public void forceDeleteShape(final WiresBaseShape shape) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); }
@Override public void forceDeleteShape(final WiresBaseShape shape) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); }
@Override public void deleteShape(final WiresBaseShape shape) { if (Window.confirm("Are you sure to remove the selected shape?")) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); } }
@Override public void deleteShape(final WiresBaseShape shape) { if (Window.confirm("Are you sure to remove the selected shape?")) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); } }
@Override public void deleteShape(final WiresBaseShape shape) { if (Window.confirm("Are you sure to remove the selected shape?")) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); layout(); } }
@Override public void deleteShape(final WiresBaseShape shape) { if (Window.confirm("Are you sure to remove the selected shape?")) { shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); layout(); } }
@Override public void deleteShape(final WiresBaseShape shape) { if (confirmShapeDeletion()) { if (uiRoot != null && uiRoot.equals(shape)) { uiRoot = null; model.setRoot(null); shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); } else if (shape instanceof BaseGuidedDecisionTreeShape) { final BaseGuidedDecisionTreeShape uiChild = (BaseGuidedDecisionTreeShape) shape; if (uiChild.getParentNode() instanceof BaseGuidedDecisionTreeShape) { final BaseGuidedDecisionTreeShape uiParent = (BaseGuidedDecisionTreeShape) uiChild.getParentNode(); uiParent.getModelNode().removeChild(uiChild.getModelNode()); } shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); layout(); } } }
@Override public void deleteShape(final WiresBaseShape shape) { if (confirmShapeDeletion()) { if (uiRoot != null && uiRoot.equals(shape)) { uiRoot = null; model.setRoot(null); shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); } else if (shape instanceof BaseGuidedDecisionTreeShape) { final BaseGuidedDecisionTreeShape uiChild = (BaseGuidedDecisionTreeShape) shape; if (uiChild.getParentNode() instanceof BaseGuidedDecisionTreeShape) { final BaseGuidedDecisionTreeShape uiParent = (BaseGuidedDecisionTreeShape) uiChild.getParentNode(); uiParent.getModelNode().removeChild(uiChild.getModelNode()); } shapeDeletedEvent.fire(new ShapeDeletedEvent(shape)); layout(); } } }