Ejemplo n.º 1
0
 @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 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());
 }