コード例 #1
0
 /** @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);
 }
コード例 #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);
 }
コード例 #3
0
 /** @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);
 }
コード例 #4
0
 /** @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);
 }
コード例 #6
0
 /** @generated NOT */
 protected void setLineType(int style) {
   // Do not mask implementation, use method from parent.
   // See. https://bugs.eclipse.org/bugs/show_bug.cgi?id=352549
   super.setLineType(style);
 }
コード例 #7
0
 /** @generated */
 protected void removeChildVisual(EditPart childEditPart) {
   if (removeFixedChild(childEditPart)) {
     return;
   }
   super.removeChildVisual(childEditPart);
 }
コード例 #8
0
 /** @generated */
 protected void addChildVisual(EditPart childEditPart, int index) {
   if (addFixedChild(childEditPart)) {
     return;
   }
   super.addChildVisual(childEditPart, -1);
 }
コード例 #9
0
 /**
  * Papyrus codeGen
  *
  * @generated
  */
 protected void handleNotificationEvent(Notification event) {
   super.handleNotificationEvent(event);
 }
コード例 #10
0
 /** @generated */
 protected void setLineWidth(int width) {
   super.setLineWidth(width);
 }