/** @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;
 }
コード例 #2
0
 private Image getTypeImage() {
   return UMLElementTypes.getImage(UMLPackage.eINSTANCE.getPackage_PackagedElement());
 }
コード例 #3
0
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.eclipse.papyrus.uml.diagram.activity.edit.dialogs.CreateCallActionDialog#getParentImage()
  */
 @Override
 protected Image getParentImage() {
   return UMLElementTypes.getImage(UMLPackage.eINSTANCE.getPackage());
 }