/** @generated */
 static {
   registerSnapBackPosition(
       UMLVisualIDRegistry.getType(
           org.eclipse.papyrus.diagram.usecase.edit.parts.GeneralizationAppliedStereotypeEditPart
               .VISUAL_ID),
       new Point(0, -20));
 }
Exemplo n.º 2
0
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     parser =
         UMLParserProvider.getParser(
             UMLElementTypes.Package_2016,
             getParserElement(),
             UMLVisualIDRegistry.getType(
                 org.eclipse.papyrus.diagram.usecase.edit.parts.PackageNameEditPartTN.VISUAL_ID));
   }
   return parser;
 }
 /** @generated */
 public IParser getParser() {
   if (parser == null) {
     parser =
         UMLParserProvider.getParser(
             UMLElementTypes.Generalization_4010,
             getParserElement(),
             UMLVisualIDRegistry.getType(
                 org.eclipse.papyrus.diagram.usecase.edit.parts
                     .GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
   }
   return parser;
 }
 /** @generated */
 private String getPackageImport_4019Text(View view) {
   IParser parser =
       UMLParserProvider.getParser(
           UMLElementTypes.PackageImport_4019,
           view.getElement() != null ? view.getElement() : view,
           UMLVisualIDRegistry.getType(PackageImportVisibilityEditPart.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 " + 6017); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }
 /** @generated */
 private String getGeneralization_4010Text(View view) {
   IParser parser =
       UMLParserProvider.getParser(
           UMLElementTypes.Generalization_4010,
           view.getElement() != null ? view.getElement() : view,
           UMLVisualIDRegistry.getType(GeneralizationAppliedStereotypeEditPart.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 " + 6032); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }
 /** @generated */
 private String getActor_3018Text(View view) {
   IParser parser =
       UMLParserProvider.getParser(
           UMLElementTypes.Actor_3018,
           view.getElement() != null ? view.getElement() : view,
           UMLVisualIDRegistry.getType(ActorInComponentNameEditPart.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 " + 5031); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }
 /** @generated */
 private String getUseCase_2014Text(View view) {
   IParser parser =
       UMLParserProvider.getParser(
           UMLElementTypes.UseCase_2014,
           view.getElement() != null ? view.getElement() : view,
           UMLVisualIDRegistry.getType(UseCaseAsRectangleNameEditPartTN.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 " + 5017); // $NON-NLS-1$
     return ""; //$NON-NLS-1$
   }
 }