/**
   * Papyrus codeGen
   *
   * @generated
   */
  protected void handleNotificationEvent(Notification event) {
    super.handleNotificationEvent(event);

    // set the figure active when the feature of the of a class is true
    if (resolveSemanticElement() != null) {
      if (resolveSemanticElement().equals(event.getNotifier())
          && (event.getFeature() instanceof EAttribute)
          && ((EAttribute) (event.getFeature())).getName().equals("isActive")) {
        ((ClassifierFigure) getFigure()).setActive(event.getNewBooleanValue());
        refreshVisuals();
      }
    }
  }
 /** @generated */
 protected void createDefaultEditPolicies() {
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new MetaclassItemSemanticEditPolicy());
   installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
   installEditPolicy(
       AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY,
       new AppliedStereotypeNodeLabelDisplayEditPolicy());
   installEditPolicy(
       QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
   installEditPolicy(
       "RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); // $NON-NLS-1$
   installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CustomMetaclassItemSemanticEditPolicy());
   // 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 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);
 }