Ejemplo n.º 1
0
  /** @generated */
  protected Image getLabelIcon() {
    EObject parserElement = getParserElement();
    if (parserElement == null) {
      return null;
    }

    List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
    for (View view : views) {
      if (NameLabelIconHelper.showLabelIcon(view)) {
        return UMLElementTypes.getImage(parserElement.eClass());
      }
    }
    return null;
  }
 /**
  * Construct the command for asking to choose graphical children of a adapter Constructor.
  *
  * @param domain
  * @see {@link AbstractTransactionalCommand}
  * @param label
  * @see {@link AbstractTransactionalCommand}
  * @param _allChildren
  * @see {@link #allChildren}
  * @param _automaticChildren
  * @see {@link #automaticChildren}
  * @param _adapter
  * @see {@link #adapter}
  */
 public ChooseChildrenNotificationCommand(
     TransactionalEditingDomain domain,
     String label,
     List<IGraphicalEditPart> _allChildren,
     List<IGraphicalEditPart> _automaticChildren,
     IAdaptable _adapter,
     IGraphicalEditPart getHost,
     DiagramEditPart _diagramPart) {
   super(domain, label, null);
   this.allChildren = _allChildren;
   this.automaticChildren = _automaticChildren;
   this.adapter = _adapter;
   this.host = getHost;
   this.diagramPart = _diagramPart;
   this.manager =
       PendingGroupNotificationsManager.getInstanceForDiagram(
           DiagramEditPartsUtil.getDiagramEditPart(getHost));
 }