/** @generated */
 protected void handleNotificationEvent(Notification notification) {
   Object feature = notification.getFeature();
   if (NotationPackage.eINSTANCE.getSize_Width().equals(feature)
       || NotationPackage.eINSTANCE.getSize_Height().equals(feature)
       || NotationPackage.eINSTANCE.getLocation_X().equals(feature)
       || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) {
     refreshBounds();
   }
   super.handleNotificationEvent(notification);
 }
 /** @generated */
 protected void createDefaultEditPolicies() {
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE, new DataTypeOperationCompartmentItemSemanticEditPolicy());
   installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
   installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
   installEditPolicy("RemoveOrphanView", new RemoveOrphanViewPolicy()); // $NON-NLS-1$
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new ProfileDiagramDragDropEditPolicy());
 }
 /** @generated */
 protected void createDefaultEditPolicies() {
   super.createDefaultEditPolicies();
   installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
   installEditPolicy(
       EditPolicyRoles.SEMANTIC_ROLE, new ClassAttributeCompartmentItemSemanticEditPolicy());
   installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
   installEditPolicy(DuplicatePasteEditPolicy.PASTE_ROLE, new DuplicatePasteEditPolicy());
   // 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.ClassAttributeCompartmentCanonicalEditPolicy());
   installEditPolicy("RemoveOrphanView", new RemoveOrphanViewPolicy()); // $NON-NLS-1$
   installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new ClassDiagramDragDropEditPolicy());
 }
 /** @generated */
 protected void setRatio(Double ratio) {
   if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
     super.setRatio(ratio);
   }
 }
 /** @generated */
 protected void refreshVisuals() {
   super.refreshVisuals();
   refreshBounds();
 }