Ejemplo n.º 1
0
 /** @generated */
 protected void createDefaultEditPolicies() {
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentItemSemanticEditPolicyCN());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(
       ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY,
       new ClazzDiagramChangeStereotypedShapeEditpolicy());
   // 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);
 }
Ejemplo n.º 2
0
 /**
  * Papyrus codeGen
  *
  * @generated
  */
 protected void handleNotificationEvent(Notification event) {
   super.handleNotificationEvent(event);
 }
Ejemplo n.º 3
0
 /** @generated */
 protected void removeChildVisual(EditPart childEditPart) {
   if (removeFixedChild(childEditPart)) {
     return;
   }
   super.removeChildVisual(childEditPart);
 }
Ejemplo n.º 4
0
 /** @generated */
 protected void addChildVisual(EditPart childEditPart, int index) {
   if (addFixedChild(childEditPart)) {
     return;
   }
   super.addChildVisual(childEditPart, -1);
 }