/** @generated */
 protected void createDefaultEditPolicies() {
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, getPrimaryDragEditPolicy());
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new InputPort2ItemSemanticEditPolicy());
   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 NOT */
 protected void handleNotificationEvent(Notification notification) {
   Object feature = notification.getFeature();
   if (RobmodPackage.eINSTANCE.getPort_External().equals(feature)) {
     if (notification.getNewBooleanValue()) {
       primaryShape.setVisible(false);
     } else {
       primaryShape.setVisible(true);
     }
   } else super.handleNotificationEvent(notification);
 }
 /** @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);
 }