/** @generated */
 protected void createDefaultEditPolicies() {
   installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
   super.createDefaultEditPolicies();
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE, new InstanceSpecificationItemSemanticEditPolicyCN());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(
       QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
   installEditPolicy(
       ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY,
       new ClazzDiagramChangeStereotypedShapeEditpolicy());
   installEditPolicy(
       ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY,
       new ShowHideCompartmentEditPolicy());
   installEditPolicy(
       ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY,
       new ShowHideClassifierContentsEditPolicy());
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE, new CustomInstanceSpecificationItemSemanticEditPolicyCN());
   // 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);
 }
Example #2
0
 /** @generated */
 protected void createDefaultEditPolicies() {
   installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PackageItemSemanticEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
   // in Papyrus diagrams are not strongly synchronised
   // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.clazz.edit.policies.PackageCanonicalEditPolicy());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(
       "RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); // $NON-NLS-1$
   installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(
       QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
   installEditPolicy(EditPolicy.COMPONENT_ROLE, new CustomViewComponentEditPolicy());
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CustomPackageItemSemanticEditPolicy());
   installEditPolicy(
       ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY,
       new ShowHideCompartmentEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new ClassDiagramDragDropEditPolicy());
   // 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() {
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ModelItemSemanticEditPolicyCN());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(
       ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY,
       new ShowHideCompartmentEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
   installEditPolicy(
       "RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); // $NON-NLS-1$
   installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
   // 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() {
   super.createDefaultEditPolicies();
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE, new SubjectClassifierItemSemanticEditPolicyTN());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(EditPolicyRoles.POPUPBAR_ROLE, new HyperLinkPopupBarEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(
       ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY,
       new ShowHideCompartmentEditPolicy());
   installEditPolicy(
       ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY,
       new UseCaseChangeStereotypedShapeEditpolicy());
   // 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() {
   super.createDefaultEditPolicies();
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE, new CollaborationCompositeItemSemanticEditPolicy());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(
       QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
   installEditPolicy(
       ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY,
       new ShowHideClassifierContentsEditPolicy());
   installEditPolicy(
       ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY,
       new ShowHideCompartmentEditPolicy());
   // 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);
 }