/** @generated */
 @Override
 public int category(Object element) {
   if (element instanceof UMLNavigatorItem) {
     UMLNavigatorItem item = (UMLNavigatorItem) element;
     return UMLVisualIDRegistry.getVisualID(item.getView());
   }
   return GROUP_CATEGORY;
 }
 /** @generated */
 public int category(Object element) {
   if (element instanceof UMLNavigatorItem) {
     UMLNavigatorItem item = (UMLNavigatorItem) element;
     if (item.getView().getEAnnotation("Shortcut") != null) { // $NON-NLS-1$
       return SHORTCUTS_CATEGORY;
     }
     return UMLVisualIDRegistry.getVisualID(item.getView());
   }
   return GROUP_CATEGORY;
 }
Esempio n. 3
0
 /** @generated */
 public String getText(Object element) {
   if (element instanceof UMLNavigatorGroup) {
     UMLNavigatorGroup group = (UMLNavigatorGroup) element;
     return group.getGroupName();
   }
   if (element instanceof UMLNavigatorItem) {
     UMLNavigatorItem navigatorItem = (UMLNavigatorItem) element;
     if (!isOwnView(navigatorItem.getView())) {
       return null;
     }
     return getText(navigatorItem.getView());
   }
   return super.getText(element);
 }
Esempio n. 4
0
 /** @generated */
 public Image getImage(Object element) {
   if (element instanceof UMLNavigatorGroup) {
     UMLNavigatorGroup group = (UMLNavigatorGroup) element;
     return UMLDiagramEditorPlugin.getInstance().getBundledImage(group.getIcon());
   }
   if (element instanceof UMLNavigatorItem) {
     UMLNavigatorItem navigatorItem = (UMLNavigatorItem) element;
     if (!isOwnView(navigatorItem.getView())) {
       return super.getImage(element);
     }
     return getImage(navigatorItem.getView());
   }
   return super.getImage(element);
 }