/** @generated */
  private Image getImage(String key, IElementType elementType) {
    ImageRegistry imageRegistry =
        hub.top
            .adaptiveSystem
            .diagram
            .part
            .AdaptiveSystemDiagramEditorPlugin
            .getInstance()
            .getImageRegistry();
    Image image = imageRegistry.get(key);
    if (image == null
        && elementType != null
        && hub.top.adaptiveSystem.diagram.providers.AdaptiveSystemElementTypes.isKnownElementType(
            elementType)) {
      image =
          hub.top.adaptiveSystem.diagram.providers.AdaptiveSystemElementTypes.getImage(elementType);
      imageRegistry.put(key, image);
    }

    if (image == null) {
      image = imageRegistry.get("Navigator?ImageNotFound"); // $NON-NLS-1$
      imageRegistry.put(key, image);
    }
    return image;
  }
 /** @generated */
 static {
   hub.top
       .adaptiveSystem
       .diagram
       .part
       .AdaptiveSystemDiagramEditorPlugin
       .getInstance()
       .getImageRegistry()
       .put(
           "Navigator?UnknownElement", ImageDescriptor.getMissingImageDescriptor()); // $NON-NLS-1$
   hub.top
       .adaptiveSystem
       .diagram
       .part
       .AdaptiveSystemDiagramEditorPlugin
       .getInstance()
       .getImageRegistry()
       .put("Navigator?ImageNotFound", ImageDescriptor.getMissingImageDescriptor()); // $NON-NLS-1$
 }
 /** @generated */
 private String getDoNet_2006Text(View view) {
   hub.top.adaptiveSystem.DoNet domainModelElement =
       (hub.top.adaptiveSystem.DoNet) view.getElement();
   if (domainModelElement != null) {
     return domainModelElement.getName();
   } else {
     hub.top
         .adaptiveSystem
         .diagram
         .part
         .AdaptiveSystemDiagramEditorPlugin
         .getInstance()
         .logError("No domain element for view with visualID = " + 2006); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }
 /** @generated */
 private String getAdaptiveSystem_79Text(View view) {
   hub.top.adaptiveSystem.AdaptiveSystem domainModelElement =
       (hub.top.adaptiveSystem.AdaptiveSystem) view.getElement();
   if (domainModelElement != null) {
     return String.valueOf(domainModelElement.isSetWellformednessToOclets());
   } else {
     hub.top
         .adaptiveSystem
         .diagram
         .part
         .AdaptiveSystemDiagramEditorPlugin
         .getInstance()
         .logError("No domain element for view with visualID = " + 79); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }
  /** @generated */
  private String getArcToEvent_3002Text(View view) {
    IAdaptable hintAdapter =
        new hub.top.adaptiveSystem.diagram.providers.AdaptiveSystemParserProvider.HintAdapter(
            hub.top.adaptiveSystem.diagram.providers.AdaptiveSystemElementTypes.ArcToEvent_3002,
            (view.getElement() != null ? view.getElement() : view),
            hub.top.adaptiveSystem.diagram.part.AdaptiveSystemVisualIDRegistry.getType(
                hub.top.adaptiveSystem.diagram.edit.parts.ArcToEventWeightEditPart.VISUAL_ID));
    IParser parser = ParserService.getInstance().getParser(hintAdapter);

    if (parser != null) {
      return parser.getPrintString(hintAdapter, ParserOptions.NONE.intValue());
    } else {
      hub.top
          .adaptiveSystem
          .diagram
          .part
          .AdaptiveSystemDiagramEditorPlugin
          .getInstance()
          .logError("Parser was not found for label " + 6002); // $NON-NLS-1$
      return ""; //$NON-NLS-1$
    }
  }
  /** @generated */
  public Image getImage(Object element) {
    if (element instanceof hub.top.adaptiveSystem.diagram.navigator.AdaptiveSystemNavigatorGroup) {
      hub.top.adaptiveSystem.diagram.navigator.AdaptiveSystemNavigatorGroup group =
          (hub.top.adaptiveSystem.diagram.navigator.AdaptiveSystemNavigatorGroup) element;
      return hub.top
          .adaptiveSystem
          .diagram
          .part
          .AdaptiveSystemDiagramEditorPlugin
          .getInstance()
          .getBundledImage(group.getIcon());
    }

    if (element instanceof hub.top.adaptiveSystem.diagram.navigator.AdaptiveSystemNavigatorItem) {
      hub.top.adaptiveSystem.diagram.navigator.AdaptiveSystemNavigatorItem navigatorItem =
          (hub.top.adaptiveSystem.diagram.navigator.AdaptiveSystemNavigatorItem) element;
      if (!isOwnView(navigatorItem.getView())) {
        return super.getImage(element);
      }
      return getImage(navigatorItem.getView());
    }

    return super.getImage(element);
  }