@Override protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy( EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(HandleDirection.OUTGOING)); installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NonResizableEditPolicyEx()); }
/** @generated */ protected void handleNotificationEventGen(Notification event) { if (event.getNotifier() == getModel() && EcorePackage.eINSTANCE.getEModelElement_EAnnotations().equals(event.getFeature())) { handleMajorSemanticChange(); } else { super.handleNotificationEvent(event); } }
/** @generated */ protected void addBorderItem( IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) { if (borderItemEditPart instanceof PseudostateName3EditPart) { IBorderItemLocator locator = new UnrestrictedOutsideBorderItemLocator(getMainFigure()); borderItemContainer.add(borderItemEditPart.getFigure(), locator); return; } super.addBorderItem(borderItemContainer, borderItemEditPart); }
@Override protected void handleNotificationEvent(Notification notification) { // We have to update the primary shape when the entry kind changes if (SGraphPackage.eINSTANCE.getEntry_Kind().equals(notification.getFeature())) { // TODO: We have to remove the old figure, this does not work // currently because the connections get broken then. getMainFigure().add(getPrimaryShape()); } super.handleNotificationEvent(notification); }
/** @generated */ protected void createDefaultEditPolicies() { if (UMLVisualIDRegistry.isShortcutDescendant(getNotationView())) { installEditPolicy( UpdateDescriptionEditPolicy.ROLE, new UpdateDescriptionEditPolicy(UMLDiagramUpdater.TYPED_ADAPTER, true)); } super.createDefaultEditPolicies(); installEditPolicy( EditPolicyRoles.SEMANTIC_ROLE, new DeepHistoryPseudostateItemSemanticEditPolicy()); installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy()); // XXX need an SCR to runtime to have another abstract superclass that would let children add // reasonable editpolicies // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE); }
/** @generated */ protected void createDefaultEditPolicies() { installEditPolicy( EditPolicyRoles.CREATION_ROLE, new CreationEditPolicyWithCustomReparent(LinklfVisualIDRegistry.TYPED_INSTANCE)); super.createDefaultEditPolicies(); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new Container2ItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy()); installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new Container2CanonicalEditPolicy()); installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy()); // XXX need an SCR to runtime to have another abstract superclass that would let children add // reasonable editpolicies // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE); installEditPolicy( AdjustLinksToIndirectlyMovedNodesEditPolicy.ROLE, new AdjustLinksToIndirectlyMovedNodesEditPolicy()); installEditPolicy( AdjustImplicitlyMovedLinksEditPolicy.ROLE, new AdjustImplicitlyMovedLinksEditPolicy()); }
/** @generated */ protected void handleNotificationEvent(Notification event) { super.handleNotificationEvent(event); }
/** @generated */ protected void removeChildVisual(EditPart childEditPart) { if (removeFixedChild(childEditPart)) { return; } super.removeChildVisual(childEditPart); }
/** @generated */ protected void addChildVisual(EditPart childEditPart, int index) { if (addFixedChild(childEditPart)) { return; } super.addChildVisual(childEditPart, -1); }