コード例 #1
0
 /** @generated */
 @Override
 public IParser getParser() {
   if (parser == null) {
     parser =
         UMLParserProvider.getParser(
             UMLElementTypes.InteractionUse_3002,
             getParserElement(),
             UMLVisualIDRegistry.getType(
                 org.eclipse.papyrus.uml.diagram.sequence.edit.parts.InteractionUseNameEditPart
                     .VISUAL_ID));
   }
   return parser;
 }
コード例 #2
0
 /** @generated */
 private String getGeneralOrdering_4012Text(View view) {
   IParser parser =
       UMLParserProvider.getParser(
           UMLElementTypes.GeneralOrdering_4012,
           view.getElement() != null ? view.getElement() : view,
           UMLVisualIDRegistry.getType(GeneralOrderingAppliedStereotypeEditPart.VISUAL_ID));
   if (parser != null) {
     return parser.getPrintString(
         new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
         ParserOptions.NONE.intValue());
   } else {
     UMLDiagramEditorPlugin.getInstance()
         .logError("Parser was not found for label " + 6015); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }
コード例 #3
0
 /** @generated */
 private String getMessage_4009Text(View view) {
   IParser parser =
       UMLParserProvider.getParser(
           UMLElementTypes.Message_4009,
           view.getElement() != null ? view.getElement() : view,
           UMLVisualIDRegistry.getType(MessageName7EditPart.VISUAL_ID));
   if (parser != null) {
     return parser.getPrintString(
         new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
         ParserOptions.NONE.intValue());
   } else {
     UMLDiagramEditorPlugin.getInstance()
         .logError("Parser was not found for label " + 6007); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }