/** @generated */
 protected void refreshLabel() {
   EditPolicy maskLabelPolicy =
       getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
   if (maskLabelPolicy == null) {
     maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
   }
   if (maskLabelPolicy == null) {
     View view = (View) getModel();
     if (view.isVisible()) {
       setLabelTextHelper(getFigure(), getLabelText());
       setLabelIconHelper(getFigure(), getLabelIcon());
     } else {
       setLabelTextHelper(getFigure(), ""); // $NON-NLS-1$
       setLabelIconHelper(getFigure(), null);
     }
   }
   Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
   if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
     ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
   }
   Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
   if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
     ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
   }
 }
 /** @generated */
 public void setLabelText(String text) {
   setLabelTextHelper(getFigure(), text);
   Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
   if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
     ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
   }
   Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
   if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
     ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
   }
 }
 /** @generated */
 protected void refreshLabel() {
   EditPolicy maskLabelPolicy =
       getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
   if (maskLabelPolicy == null) {
     setLabelTextHelper(getFigure(), getLabelText());
     setLabelIconHelper(getFigure(), getLabelIcon());
   }
   Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
   if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
     ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
   }
   Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
   if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
     ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
   }
 }