/**
  * @see
  *     org.eclipse.emf.common.notify.Adapter#notifyChanged(org.eclipse.emf.common.notify.Notification)
  */
 public void notifyChanged(Notification notification) {
   int featureId = notification.getFeatureID(CCMNotificationImpl.class);
   switch (featureId) {
     case CCMNotificationImpl.VALUE_DEF:
     case CCMNotificationImpl.CONTAINED:
       refreshVisuals();
       break;
     default:
       featureId = notification.getFeatureID(CCMModelPackage.class);
       switch (featureId) {
         case CCMModelPackage.NODE__CON_SOURCE:
           refreshSourceConnections();
           break;
         case CCMModelPackage.NODE__CONN_TARGET:
           refreshTargetConnections();
           break;
         default:
           super.notifyChanged(notification);
       }
   }
 }
 /** @see org.eclipse.gef.editparts.AbstractEditPart#createEditPolicies() */
 protected void createEditPolicies() {
   installEditPolicy(EditPolicy.LAYOUT_ROLE, new ContainedNodeXYLayoutEditPolicy());
   installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new ValueDefEditPolicy());
   super.createEditPolicies();
 }
 /**
  * @see org.eclipse.gef.GraphicalEditPart#setLayoutConstraint(org.eclipse.gef.EditPart,
  *     org.eclipse.draw2d.IFigure, java.lang.Object)
  */
 public void setLayoutConstraint(EditPart child, IFigure childFigure, Object constraint) {
   IFigure childF = ((GraphicalEditPart) child).getFigure();
   if (childF instanceof Label) getLabelContentPane().setConstraint(childFigure, constraint);
   else super.setLayoutConstraint(child, childFigure, constraint);
 }
 /**
  * @see org.eclipse.gef.editparts.AbstractEditPart#addChildVisual(org.eclipse.gef.EditPart, int)
  */
 protected void addChildVisual(EditPart childEditPart, int index) {
   IFigure child = ((GraphicalEditPart) childEditPart).getFigure();
   if (child instanceof Label) {
     getLabelContentPane().add(child, 0);
   } else super.addChildVisual(childEditPart, 0);
 }