Esempio 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;
 }
 /** @generated */
 protected IElementType getContextElementType(IEditCommandRequest request) {
   IElementType requestContextElementType = UMLElementTypes.getElementType(getVisualID(request));
   return requestContextElementType != null ? requestContextElementType : myElementType;
 }