/** @generated */
  private String getLabelMapping_3003Text(View view) {
    IParser parser =
        ParserService.getInstance()
            .getParser(
                new IAdaptable() {

                  public Object getAdapter(Class adapter) {
                    if (String.class.equals(adapter)) {
                      return GMFMapVisualIDRegistry.getType(LabelMapping2EditPart.VISUAL_ID);
                    }
                    if (IElementType.class.equals(adapter)) {
                      return GMFMapElementTypes.LabelMapping_3003;
                    }
                    return null;
                  }
                });
    if (parser != null) {
      return parser.getPrintString(
          new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
          ParserOptions.NONE.intValue());
    } else {
      GMFMapDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 3003);
      return "";
    }
  }
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     String parserHint = ((View) getModel()).getType();
     IAdaptable hintAdapter =
         new CIMLevelZeroParserProvider.HintAdapter(
             CIMLevelZeroElementTypes.HDSLModem_2067, getParserElement(), parserHint);
     parser = ParserService.getInstance().getParser(hintAdapter);
   }
   return parser;
 }
Пример #3
0
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     String parserHint = CommonParserHint.DESCRIPTION;
     IAdaptable hintAdapter =
         new RoxgtParserProvider.HintAdapter(
             RoxgtElementTypes.Edge_3001, getParserElement(), parserHint);
     parser = ParserService.getInstance().getParser(hintAdapter);
   }
   return parser;
 }
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     String parserHint = ((View) getModel()).getType();
     IAdaptable hintAdapter =
         new CallGraphParserProvider.HintAdapter(
             CallGraphElementTypes.Package_1001, getParserElement(), parserHint);
     parser = ParserService.getInstance().getParser(hintAdapter);
   }
   return parser;
 }
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     String parserHint = ((View) getModel()).getType();
     IAdaptable hintAdapter =
         new AsteriskParserProvider.HintAdapter(
             AsteriskElementTypes.DeleteRow_1089, getParserElement(), parserHint);
     parser = ParserService.getInstance().getParser(hintAdapter);
   }
   return parser;
 }
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     String parserHint = ((View) getModel()).getType();
     IAdaptable hintAdapter =
         new CIMLevelZeroParserProvider.HintAdapter(
             CIMLevelZeroElementTypes.ProtocolEndpointIngressConditioningServiceOnEndpoint_4055,
             getParserElement(),
             parserHint);
     parser = ParserService.getInstance().getParser(hintAdapter);
   }
   return parser;
 }
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     String parserHint = ((View) getModel()).getType();
     IAdaptable hintAdapter =
         new OntoUML.diagram.providers.OntoUMLParserProvider.HintAdapter(
             OntoUML.diagram.providers.OntoUMLElementTypes.Characterization_4001,
             getParserElement(),
             parserHint);
     parser = ParserService.getInstance().getParser(hintAdapter);
   }
   return parser;
 }
  /** @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$
    }
  }
 /**
  * Utility method that consults ParserService
  *
  * @generated
  */
 public static IParser getParser(IElementType type, EObject object, String parserHint) {
   return ParserService.getInstance().getParser(new HintAdapter(type, object, parserHint));
 }